#include<iostream>
using namespace std;
int pf(int x,int y){
    int r;
    while (y!=0)
    {
        r=x%y;
        x=y;
        y=r;
    }
    return x;
}
int main(){
    int n;
    while (cin>>n)
    {
        int a[100],max=0,sum=1;
        for(int i=0;i<n;i++){
            cin>>a[i];
            sum*=a[i]/pf(sum,a[i]);
        }
        cout<<sum<<endl;
    }
    
}